#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include"SeqList.h"
void SeqListInit(SeqList * psl)
{
	assert(psl);
	psl->capicity = 4;
	psl->size = 0;
	psl->array = NULL;
}
void checkCapacity(SeqList* psl)
{
	assert(psl);
	if (psl->size == psl->capicity)
	{
		int newcapicity = (psl->capicity == 0 ) ? 4 : (psl->capicity)* 2;
		SLDataType* temp= (SeqList*)relloc(&(psl->array), sizeof(SLDataType)*newcapicity);
		if (temp = NULL)
		{
			error("relloc");
			return ;
		}
		psl->array = temp;
		psl->capicity =newcapicity;
	}

